package com.haiyuancloud.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haiyuancloud.common.core.entity.system.TbSysTenant;
import com.haiyuancloud.common.core.entity.system.TbSysTenantRefDs;

import java.util.List;


/**
 * @author haiyuan
 */
public interface TbSysTenantRefDsMapper extends BaseMapper<TbSysTenantRefDs> {

    /**
     * 获取租户数据源索引
     *
     * @param tenantId 租户索引
     * @return 用户
     */
    List<TbSysTenantRefDs> findRefDsByTenantId(Long tenantId);

}
